// 学生门禁组
import request from '@/router/axios'

//展示表格
export function doorgroupObj(query) {
    return request({
        url: '/campus/accessConnect/page',
        method: 'get',
        params: query
    })
}

//单个分配门禁组
export function adddoorgroupObj(obj) {
    return request({
        url: '/campus/accessConnect',
        method: 'post',
        data: obj
    })
}

//单个清除门禁组
export function deldoorgroupObj(id) {
    return request({
        url: '/campus/accessConnect/' + id,
        method: 'delete'
    })
}

//批量分配门禁组
export function batchdoorgroupObj(obj) {
    return request({
        url: '/campus/accessConnect/saveBatch',
        method: 'post',
        data: obj
    })
}

//批量清除门禁组
export function batchdelIdsObj(ids) {
    return request({
        url: '/campus/accessConnect/clean/' + ids,
        method: 'delete',

    })
}